import axios from './axios'
import request from '@/utils/request'
// 查询支付相关信息
export const getPayInfo = (param) => {
  return request({
    url: 'http://localhost:3000/pay_info/get',
    method: 'get',
    param
  })
}

// 根据挂号ID设置支付状态和待支付金额
export const setPayInfo = (data) => {
  return axios.request({
    url: 'http://localhost:3000/pay_info/set',
    method: 'post',
    data
  })
}

export const newPayInfo = (data) => {
  return axios.request({
    url: 'http://localhost:3000/pay_info/new',
    method: 'post',
    data
  })
}

// 根据挂号ID查询支付相关信息
export const selectPayInfo = (data) => {
  return axios.request({
    url: 'http://localhost:3000/pay_info/select',
    method: 'post',
    data
  })
}
